Adverb (Basic ㊦ 392)
Some situation which seldom occurs has now occurred and one can either make use of it or, to one’s regret, cannot make use of it.
Equivalent: With effort; at great pain; take the trouble to do ~
せっかく tends to co-occur with のに 'although' or のだから 'because (it is that) ~', as in Key Sentence (A) and (B), respectively. せっかくの+Noun, however, can be used as a noun phrase, free from any co-occurrence restrictions, as shown in Key Sentence (C) and Examples (c) and (e). せっかくですが (in Example (d)) is used to politely decline someone's kind offer, and せっかくですから (in Example (f)) is used to accept someone's offer.
【Related Expression】
せっかく is related to わざわざ, an adverb whose basic meaning is 'intentionally take the trouble to do something, although it is not necessary to do so'.
[1]
